package com.blogspot.nhu313.myhistory.service;

import android.content.Context;

import com.blogspot.nhu313.myhistory.category.CategoryService;

public class ServiceFactory {

	@SuppressWarnings("unchecked")
	public static <T> T getService(ServiceName name, Context applicationContext) {
		switch(name){
			case CATEGORY:
				return (T) new CategoryService(applicationContext);
		    default:
		    	return null;
			
		}
	}

}